package demo4;

interface C {
    void funC ();
}
interface D {
    void funD ();
}
interface E extends C,D {
    void funE ();
}
class R implements E{
    @Override
    public void funC() {
    }
    @Override
    public void funD() {
    }
    @Override
    public void funE() {
    }
}
class F implements C,D,E {
    @Override
    public void funC() {

    }
    @Override
    public void funD() {

    }
    @Override
    public void funE() {

    }
}
interface A {
    default void add() {
        System.out.println("从JDK8开始  可以写一个default修饰的方法");
    }

    public abstract void fun1();
//    public void fun2 ();
//    abstract void fun3 ();
    void fun();

    public static int a = 10;
    static void a () {
        System.out.println("asdfasd");
    }
}
class B implements A {
    @Override
    public void fun() {
        System.out.println("重写A接口的fun()方法");
    }
    @Override
    public void fun1() {
        A.a();
        int b = A.a;
    }
}
public class Test {
    public static void main(String[] args) {
        int b = A.a;
    }
}
